home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ Services Timeout.xpl < prev    next >
Text File  |  1998-08-08  |  1KB  |  45 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 3.1"
  2. "TYPE"="2"
  3. "COUNT"="1"
  4. "UIPATH"="System\Timeouts"
  5. "NAME"="Service Timeout"
  6. "LANGUAGE"="VBScript"
  7. "TEXT 1"="Timeout (sec)"
  8. "DESCRIPTION 1"="If this computer is shut down, Windows allows all services a specified time to end themselves."
  9. "DESCRIPTION 2"="After this time is reached any still running services will be shut down by Windows."
  10. "DESCRIPTION 3"="The default timeout is 20 seconds."
  11. "AUTHOR"="Xteq Systems"
  12. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  13. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@gmx.net."
  14. "COMMENT 2"="Version 1.1"
  15.  
  16.  
  17.  
  18. sP="HKLM\System\CurrentControlSet\Control\WaitToKillServiceTimeout"
  19. Sub Plugin_Initialize 
  20.  i=RegReadValue(sp)
  21.  if IsEmpty(i)=false then
  22.   SetUIElement 1,i
  23.  else
  24.   Disable
  25.  end if
  26. End Sub
  27.  
  28. Sub Plugin_CheckData(ElementIndex)
  29.  s=GetUIElement(1)
  30.  If Len(s)<=0 then
  31.   DataInvalid "Please enter a value."
  32.  end if
  33. End Sub
  34.  
  35. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  36.  i=GetUIElement(1)
  37.  Call RegWriteValue(sp,i,1)
  38. End Sub
  39.  
  40. Sub Plugin_Terminate 
  41. End Sub
  42.  
  43.  
  44.  
  45.